{extend name="./oscshop/admin/view/public/base.html" /}
{block name="content"}
<div class="page-header">
	<h1>	
		{$breadcrumb1}
		<small>
			<i class="ace-icon fa fa-angle-double-right"></i>
			{$breadcrumb2}
		</small>
	</h1>
</div>

	
<table class="table table-striped table-bordered table-hover search-form">
	<thead>
		
		<th><input name="user_name" type="text" placeholder="输入会员用户名" value="{:input('param.user_name')}" /></th>		
		
		<th>
			<a class="btn btn-primary" href="javascript:;" id="search" url="{:url('fin/isprocing')}">查询</a>
					<th>
			<a class="btn btn-primary" href="javascript:;" id="search" url="{:url('fin/index')}">全部设置为已处理</a>
			<a class="btn btn-primary" href="javascript:;" id="search" url="{:url('fin/index')}">到处全部正在处理的记录</a>
		</th>
	</thead>
</table>	
	
<div class="row">
	<div class="col-xs-12">	
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover">
				<thead>
					<tr>											
						<th>用户</th>
						<th>提交数量</th> 
						<th>转换数额</th> 
						<th>实际到账数额</th> 
						<th>描述</th>
						<th>提交时间</th>	
						<th>支付时间</th>	
						<th>当前状态</th>
						<th>开户行</th>
						<th>开户人</th>	
						<th>银行账号</th>
						
						<th>设置为正在处理</th>	
						<th>设置为处理完成</th>	
						<th>设置为取消</th>	
					</tr>
				</thead>
				<tbody>
						{volist name="list" id="v" empty="$empty"}
						<tr>						
							<td>{$v.username}</td>
							<td>{$v.num}</td>

							<td>
							{$v.money}
							</td>
							<td>
								{$v.real_money}
							</td>
							<td>
								{$v.description}
							</td>
							<td>
								{$v.creat_time}
							</td>							
							<td>
								{$v.pay_time}
							</td>							
							<td>
								正在处理
							</td>

							<td>
								{$v.bankname}
							</td>							
							<td>
								{$v.bankaccountname}
							</td>							
							<td>
								{$v.bankaccount}
							</td>


							<td>
								<input type="button" value='设置为待处理'/>
							</td>
							<td>
								<input type="button" value='设置为处理完成'/>
							</td>
							<td>
								<input type="button" value='设置为取消'/>
							</td>
						</tr>
						{/volist}	
						
						<tr>
							<td colspan="20" class="page">{$list->render()}</td>
						</tr>
				</tbody>
				
			</table>
		</div>
	</div>
</div>
{/block}
{block name="javascript"}
<script>	
$(function(){
   $("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });	
});
</script>
{/block}